<div class="buttons" id='buttons'>
  <div class="right">
   输入支付密码： <input type='password' name='spassword' id='pwd' value='' />
    <input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="button" />
  </div>
</div>
<script type="text/javascript">
$('#button-confirm').bind('click', function() {
	var v = $("#pwd").val();
	$.ajax({ 
		type: 'get',
		dataType: 'json',
		url: 'index.php?route=payment/free_checkout/checkpwd&pwd='+v,
		success: function(json) {
			$('.warning').remove();
				if (json['error']) {
					
					$('#buttons').prepend('<div class="warning" style="display: none;">' + json['error'] + ' </div>');
					
					$('.warning').fadeIn('slow');
				}else{
				location = '<?php  echo $continue; ?>';
			}
		
		}		
	});
});
</script> 
